import type { LoginParams, LoginResult } from '@/types/login'
import { http } from '@/utils/http'
export const useLoginApi = () => {
    return {
        Login: (data:LoginParams) => {
            return http<LoginResult>({
                method:'POST',
                url: '/login/wxMin',
                data
            })
        },
        LoginLower: (data:{phoneNumber:string}) => {
            return http<LoginResult>({
                method:"POST",
                url:'/login/wxMin/simple',
                data
            })
        }
    }
} 